<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <p></p>
    <p></p>
    <script src="http://d3js.org/d3.v3.min.js"></script>
    <script>
      // 使用D3.js在网页上显示一个Hello Wolrd
      var p = d3.select("body").selectAll("p");
      p.text("Hello World");
      // 利用d3.js在网页上修改文本的显示
      var p1 = d3.select("body").selectAll("p");
      p1.text("http://www.baidu.com");
    </script>
  </body>
</html>
